<template>
  <div class="my_fang">
    <div>
      <van-nav-bar title="房间" right-text="···" left-arrow @click-left="onClickLeft" />
    </div>
    <div>
      <span>所有房间</span>
    </div>
    <div class="my_video">
      <vue3VideoPlay width="350px" height="150px" title="钢铁侠" :src="options.src" :poster="options.poster" 
        :control="false" />
    </div>
    <div class="my_sle">
      <select id="" class="my_select">
        <option value="">快捷设置</option>
        <option value="">客厅</option>
        <option value="">浴室</option>
      </select>
    </div>
    <div class="my_fontlist">
      <div class="fontbox">
        <span class="">+</span>
      </div>
      <div class="fontbox">
        <span class="iconfont icon-chuang"></span>
      </div>
      <div class="fontbox">
        <span class="iconfont icon-deng"></span>
      </div>
      <div class="fontbox">
        <span class="iconfont icon-fengshan"></span>
      </div>
      <div class="fontbox">
        <span class="iconfont icon-linyu"></span>
      </div>
    </div>
    <div class="my_sle">
      <select id="" class="my_select">
        <option value="">模式</option>
        <option value="">客厅</option>
        <option value="">浴室</option>
      </select>
    </div>
    <div class="my_moshi">
      <div class="my_font">
        <span class="iconfont icon-yueliang font_1"></span>
        <span class="my_zheng">正常模式</span>
      </div>
      <div class="my_moshiright">
        <span class="iconfont icon-taiyang"></span>
      </div>
    </div>
    <div class="my_yu">
      <div>
        预定
      </div>
      <div>
        <van-switch v-model="checked" active-color="#7033FF" inactive-color="#FB8F66" />
      </div>
    </div>
    <div class="my_yu1">
      <div>
        <span class="my_ping">屏幕窗口</span>
        <p class="my_ci">这将有助于避免你的目光接触</p>
      </div>
      <div>
        <van-switch v-model="checked" active-color="#7033FF" inactive-color="#FB8F66" />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">

import { reactive, ref } from 'vue';
import router from '../../../router';

const onClickLeft = () => {
  router.push('./Hello')
}


const options = reactive({
  src: "../../../../public/video/VCG42806616826.mp4", 
  type: 'm3u8', 
  poster: '../../../../public/image/roomimg/room (5).png', 
})

let checked = ref(false)
</script>

<style  scoped>
.my_fang {
  padding: 1rem;
}

.my_video {
  width: 35.0rem;
  height: 15.0rem;
  border-radius: 2.0rem;
  margin-top: 1.5rem;
}

.my_sle {
  height: 4.0rem;
  margin-top: 1.0rem;
}

.my_select {
  border: none;
}

.my_fontlist {
  height: 4.8rem;
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
}

.fontbox {
  width: 4.8rem;
  height: 4.8rem;
  background-color: #F6F5FA;
  color: #ABA3CF;
  font-size: 3.0rem;
  line-height: 5.0rem;
  text-align: center;
  border-radius: 1.5rem;
}

.fontbox:hover {
  background-color: #7033FF;
  color: white;
}

.my_moshi {
  display: flex;
  justify-content: space-between;
  width: 34.0rem;
  height: 4.6rem;
  margin-left: 1.0rem;
  background: #fdfbfb;
  background-blend-mode: normal;
  border-radius: 2.0rem;
  box-shadow: 0rem 0rem 1.0rem
}

.my_zheng {
  margin-left: 2.0rem;
}

.my_moshiright {
  width: 15.0rem;
  background: linear-gradient(90deg, #fb8f66 0%, #7033ff 100%);
  border-radius: 0rem 2.0rem 2.0rem 0rem;
  text-align: center;
  line-height: 4.0rem;
  color: white;
}

.my_font {
  display: flex;
  align-items: center;
  margin-left: 2.0rem;
}

.font_1 {
  color: #673AB7;
}

.my_yu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6.0rem;
  border-bottom: 0.1rem solid #cccc;
  margin-top: 2.0rem;
}

.my_yu1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6.0rem;
  margin-top: 2.0rem;
}

.my_ci {
  color: #ABA3CF;
}

.my_ping {
  color: #352C5D;
}
</style>